package bird.inherit;

import java.util.Date;

/**
 * @author hanjian
 */
public abstract class AbstractBird {

    /**
     * 出生日期
     */
    protected Date birth;

    public AbstractBird(Date birth) {
        this.birth = birth;
    }

    public Date getBirth() {
        return this.birth;
    }

    /**
     * 飞
     */
    public void fly() {
        System.out.println("fly!");
    }

    /**
     * 下蛋
     */
    public void egg() {
        System.out.println("egg!");
    }

    /**
     * 叫
     */
    public void call() {
        System.out.println("call!");
    }
}
